use std::thread;
use std::time::Duration;

fn main() {
    thread::spawn(|| {
        for i in 1..10 {
            println!("hi number {i} from spawned thread!");
            
            thread::sleep(Duration::from_millis(1));
        }
    });


        for i in 1..10 {
            println!("hello number {i} from main thread!");
            thread::sleep(Duration::from_millis(1));
        }



}